package myschool.test2;

import myschool.dao.StudentDao;
import myschool.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestStudentSex {
    public static void main(String[] args) {
        SqlSession s= MyBatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);
        List<Map<String, Integer>> list = mapper.querySexNums();
        System.out.println(list);
        MyBatisUtil.close(s);
    }
}
